The QuickTime VR Manager defines three sets of flags for use in connection with a back buffer imaging procedure: (1) a set of flags for the flags field in an area of interest structure passed to the QTVRSetBackBufferImagingProc function, (2) a set of flags for the flagsIn parameter to a back buffer imaging procedure, and (3) a set of flags for the flagsOut parameter to a back buffer imaging procedure.
The flags field in an area of interest structure (link) passed to the function QTVRSetBackBufferImagingProc is a long integer whose bits indicate when to call the back buffer imaging procedure for the specified area of interest. If a bit in the long integer is set, the back buffer imaging procedure is called at the corresponding time. The bits are addressed using these constants:
enum {
kQTVRBackBufferEveryUpdate = 1L << 0,
kQTVRBackBufferEveryIdle = 1L << 1,
kQTVRBackBufferAlwaysRefresh = 1L << 2
};
The flagsIn parameter passed to a back buffer imaging procedure specifies the event or operation that caused your procedure to be called, as well as other information about the state of the back buffer when your procedure is called. The bits in the flagsIn parameter are addressed using these constants:
enum {
kQTVRBackBufferRectVisible = 1L << 0,
kQTVRBackBufferWasRefreshed = 1L << 1
};
Before returning from your back buffer imaging procedure, you should set the flagsOut parameter to indicate what actions you performed in your procedure. You can set bits in that parameter using this constant:
enum {
kQTVRBackBufferFlagDidDraw = 1L << 0
};
| Previous | Chapter Contents | Chapter Top | Next |